﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace ProductCatalog.WebApi.Models
{
    [DataContract]
    public class Product
    {
        public Product()
        {
            Tags = new List<string>();
        }

        [DataMember(Name = "prodId", IsRequired=false)]
        public string ProdId { get; set; }

        [DataMember(Name = "tags", IsRequired = true)]
        public List<string> Tags { get; set; }

        [DataMember(Name = "prodName", IsRequired = true)]
        public string ProdName { get; set; }

        [DataMember(Name = "prodDesc", IsRequired = true)]
        public string ProdDesc { get; set; }

        [DataMember(Name = "prodPrice", IsRequired = true)]
        public double ProdPrice { get; set; }

        [DataMember(Name = "imageUrl", IsRequired = true)]
        public string ImageUrl { get; set; }
    }
}